#!/bin/sh

GIT=$(which git)
if [ "x$GIT" != "x" ]
then
   COMMIT=$(git log --pretty=format:%h -n 1 2>/dev/null)
   if [ "x$COMMIT" != "x" ]
   then
      echo "$COMMIT"
   fi
else
   echo "Unknown"
fi
